#include "SMPPDpfResult.hpp"

using namespace smpp::pdu;

DpfResult::DpfResult(const quint8 nValue):
TLV(TLVtags::TAG_DPF_RESULT,1),_Value(nValue){}

DpfResult::DpfResult(const DpfResult &nDpfResult):
TLV(nDpfResult),_Value(nDpfResult.getValue()){}

bool DpfResult::operator ==(const DpfResult &nDpfResult) const{
	return (TLV::operator == (nDpfResult) && 
			_Value == nDpfResult.getValue());
}

bool DpfResult::operator !=(const DpfResult &nDpfResult) const{
	return !this->operator == (nDpfResult);
}

DpfResult &DpfResult::operator = (const DpfResult &nDpfResult){
	if(*this == nDpfResult)
		return *this;
	TLV::operator = (nDpfResult);
	_Value = nDpfResult.getValue();
	return *this;
}

void DpfResult::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 DpfResult::getValue() const{
	return _Value;
}
